﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="UploadOldListing.aspx.vb" Inherits="UploadOldListing" title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="scripts/overlib.js"></script>
<asp:Label ID="lblStaffUID" runat="server" Visible="false" />
<asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div >
    <h1>Old Listing Search</h1>
<hr />



<div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>

<p><%--Description of the page--%></p>

<!--Slide Out Adv Search Here-->
<asp:Panel ID="pnlFilter" runat="server">


<table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
  <tr>
    <td width="30">&nbsp;</td>
    <td width="120">List Type</td>
    <td width="250"><asp:DropDownList ID="ListTypeDropDown"
            runat="server">
        <asp:ListItem Selected="True">ALL</asp:ListItem>
        <asp:ListItem>RC</asp:ListItem>        
        <asp:ListItem>RL</asp:ListItem>
        <asp:ListItem>RI</asp:ListItem>
        <asp:ListItem>RR</asp:ListItem>
        <asp:ListItem>SC</asp:ListItem>
        <asp:ListItem>SL</asp:ListItem>
        <asp:ListItem>SI</asp:ListItem>
        <asp:ListItem>SR</asp:ListItem>
        </asp:DropDownList>
    </td>
    <td width="30">&nbsp;</td>
    <td width="120">Road</td>
    <td width="250">
        <asp:TextBox ID="txtRoad" runat="server" Width="300px" /> 
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>PNO</td>
    <td><asp:TextBox ID="txtPNO" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>FLR</td>
    <td>
        <asp:TextBox ID="txtFLR" runat="server" Width="300px" />    
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>LOC</td>
    <td><asp:TextBox ID="txtLOC" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>PROJ</td>
    <td>
        <asp:TextBox ID="txtPROJ" runat="server" Width="300px" />
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>OWNER</td>
    <td><asp:TextBox ID="txtOWNER" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>PROPERTY TYPE</td>
    <td>
        <asp:TextBox ID="txtTYPE" runat="server" Width="300px" />
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr> 
  <tr>
    <td>&nbsp;</td>
    <td>OWNER CONTACT</td>
    <td><asp:TextBox ID="txtOWNERCONTACT" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>OTHER CONTACT</td>
    <td><asp:TextBox ID="txtOTHERCONTACT" runat="server" Width="300" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>OTHER ADDRESS</td>
    <td><asp:TextBox ID="txtADDRESS" runat="server" Width="300px" /></td>
    <td>&nbsp;</td>
    <td>DELETED</td>
    <td><asp:DropDownList ID="StatusDeleteDropDown" runat="server">
    <asp:ListItem Selected="True">NO</asp:ListItem>
    <asp:ListItem>YES</asp:ListItem></asp:DropDownList>
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="5" align="right"><div style="border-top: 1px solid #c2c2c2; height:20px; padding-top:10px; "><asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />    
        <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" /></div>
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </tbody>

</table>

<br />

<!--Result Pane Here-->

</asp:Panel>
       
<table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
        
            <table class="ResultPanelHeader" border="0" width="100%">
                <tr>
                    <td><asp:label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
           
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
            <thead >
                <tr>
                    <th scope="col" id="first-col"><strong><asp:LinkButton ID="lnkDaerah" runat="server" Text="LISTTYPE▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkMukim" runat="server" Text="ROAD▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkSek" runat="server" Text="PNO▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkJenisLot" runat="server" Text="FLR▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkNoLot" runat="server" Text="LOC▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkPROJ" runat="server" Text="PROJ▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkTkhPenilaian" runat="server" Text="OWNER▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkADDS" runat="server" Text="ADDS▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkLuasLot" runat="server" Text="TYPE▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkJenisHartanah" runat="server" Text="TELHOME/OFF/HP▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkPemberi" runat="server" Text="REMARKS▲" ForeColor="Black" style="text-decoration:none" /></strong></th>                 
                    <th scope="col"><strong><asp:LinkButton ID="lnkBalasan" runat="server" Text="CONTACT▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkCreateDate" runat="server" Text="CONAME▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkADDS2" runat="server" Text="ADDS1,2,3,4▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkAlamat" runat="server" Text="ID▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkKawasan" runat="server" Text="ACTION▲" ForeColor="Black" style="text-decoration:none" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkPenerima" runat="server" Text="DELETE BY▲" ForeColor="Black" style="text-decoration:none" Visible="true" /></strong></th>
                    <th scope="col"><strong><asp:LinkButton ID="lnkDeletedDate" runat="server" Text="DELETE DATE▲" ForeColor="Black" style="text-decoration:none" Visible='<%# IIf(Eval("StatusDelete") Is DbNull.Value, "false","true") %>' /></strong></th>                                
                </tr>
            </thead> 
            <tbody>
                <asp:Repeater ID="repUpload" runat="server">
                    <ItemTemplate>
                        <tr>
                        <%--edited by minginn @13/4/11 to allow user view the property by clicking the row--%>
                            <td id="first-col"><asp:Label ID="lblRepUpload" runat="server" Text='<%#Container.dataitem("ID").tostring %>' Visible="false" /><asp:LinkButton ID="lblRepDaerah" runat="server" Text='<%#Container.DataItem("LISTTYPE").ToString%>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepMukim" runat="server" Text='<%#Container.dataitem("ROAD").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepSek" runat="server" Text='<%#Container.dataitem("PNO").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepJenisLot" runat="server" Text='<%#Container.dataitem("FLR").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepNoLot" runat="server" Text='<%#Container.dataitem("LOC").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblPROJ" runat="server" Text='<%#Container.dataitem("PROJ").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepTkhPenilaian" runat="server" Text='<%#Container.dataitem("OWNER").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblADDS" runat="server" Text='<%#Container.dataitem("ADDS").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
<%--                                <td><asp:LinkButton ID="lblRepTkhPenilaian" runat="server" Text='<%# Bind("TkhPenilaian","{0:dd-MMM-yyyy}") %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>--%>
                                <td><asp:LinkButton ID="lblRepLuasLot" runat="server" Text='<%#Container.dataitem("TYPE").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepJenisHartanah" runat="server" Text='<%#Container.dataitem("TELHOME").tostring & "/" & Container.dataitem("TELOFF").tostring & "/" & Container.dataitem("TELHP").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>                                
                                <td><asp:LinkButton ID="lblRepPemberi" runat="server" Text='<%#Container.dataitem("REMARK").tostring & " " & Container.dataitem("REMARK1").tostring & " " & Container.dataitem("REMARK2").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepBalasan" runat="server" Text='<%#Container.dataitem("CONTACT").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>                           
                                <td><asp:LinkButton ID="lblCreateDate" runat="server" Text='<%#Container.dataitem("CONAME").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>                           
                                <td><asp:LinkButton ID="lblRepAlamat" runat="server" Text='<%#Container.dataitem("ADD1").tostring & "," & Container.dataitem("ADD2").tostring & "," & Container.dataitem("ADD3").tostring & "," & Container.dataitem("ADD4").tostring  %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>
                                <td><asp:LinkButton ID="lblRepKawasan" runat="server" Text='<%#Container.dataitem("ID").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList" /></td>                                                          
                                <td><asp:Button ID="Button1" runat="server" Text="Delete" CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="DeleteList" OnClientClick="return confirm('Are you sure you want to delete this record?')" Enabled="true" Visible='<%# IIf(Eval("StatusDelete") Is DbNull.Value, "True","False") %>'/></td>
                                <td><asp:LinkButton ID="lblRepPenerima" runat="server" Text='<%#Container.dataitem("UserName").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList"  Visible='<%# IIf(Eval("StatusDelete") Is DbNull.Value, "false","true") %>'/></td> 
                                <td><asp:LinkButton ID="lblDeletedDate" runat="server" Text='<%#Container.dataitem("DeletedDate").tostring %>' CommandArgument='<%#Container.dataitem("ID").tostring %>' CommandName="ViewList"  Visible='<%# IIf(Eval("StatusDelete") Is DbNull.Value, "false","true") %>'/></td> 
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
               </tbody>
            </table>
            
      </td>
    </tr>
    <tr>
        <td>
            <table class="ResultPanelFooter" width="100%">
                <tr>
                    <td ><asp:label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                    <td align="center" valign="middle">
                        <asp:Panel ID="pnlNavigation" runat="server" style="text-align:center; vertical-align:middle;">
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png"   ID="btnMoveFirst"  runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png"    ID="btnPrevious"   runat="server" Width="28"  Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" style="text-align:center; vertical-align:middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" style="vertical-align: middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png"      ID="btnGo"          runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png"  ID="btnNext"        runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png"    ID="btnMoveLast"    runat="server"  Width="28" Height="18" style="vertical-align:middle;"/>
                                <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" style="vertical-align:middle;"/>
                      </asp:Panel>
                    </td>
                    <td align="right">
                        Number of entries per page : <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<asp:Label ID="lblhidSortType" runat="server" Visible="False" 
            Text=" ORDER BY LISTTYPE DESC, ROAD DESC, PNO DESC, FLR DESC, LOC DESC, PROJ DESC, OWNER DESC, TYPE DESC" />
    </div>
</asp:Content>


